<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>云盘首页</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="layui/dist/css/layui.css"  media="all">
    <script type="text/javascript" src="js/jquery-3.3.1.min.js"></script>
    <script type="text/javascript">
        $(function(){
            $("#checkBtn").click(function(){
                var username=$("#username").val();
                var password = $("#password").val();
                if(username=="" || password==""){
                    $("#msg").text("用户名或者密码不能为空！");
                    return false;
                }
            });
            $("#register").click(function () {
                window.location.href="register";

            })
        });

    </script>
    <style>
        body{
            background-image: url("/image/BingWallpaperorigin.jpg");
        }
        div#login{
            background-image: url("/image/BingWallpaper.png");
            backdrop-filter: blur(1.5px);
            background-repeat: no-repeat;
        }
        @font-face{
            font-family: 'mynewfont';
            src:url("fonts/方正清刻本悦宋简.TTF");
        }
    </style>
</head>
<body>
<br><br><br>
<div id="login" style="margin: 0 auto;width: 80%" align="center">
<div style="margin: 0 auto; width:60%" align="center">
    <br><br><br><br><br><br>
    <h1 align="center" style="font-size: 70px;font-family: 'mynewfont';color: #520014"><b>简·存取云</b></h1>
    <br><br><br><br><br><br>
    <form class="layui-form" action="login" method="post" lay-filter="example">
        <div class="layui-form-item">
            <label class="layui-form-label"><b> 用户名：</b></label>
            <div class="layui-input-block">
                <input type="text" name="username" id="username" lay-verify="title" autocomplete="off" placeholder="请输入用户名" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><b> 密码：</b></label>
            <div class="layui-input-block">
                <input type="password" name="password" id="password" placeholder="请输入密码" autocomplete="off" class="layui-input">
            </div>
        </div>

        <p style="height: 40px;text-align: center;color: red"><span  id="msg" th:text="${msg}"></span></p>

        <div class="layui-form-item">
            <div style="text-align: center">

                <button type="submit" class="layui-btn layui-btn-radius" id="checkBtn" >登录</button>
                <button type="button" class="layui-btn layui-btn-radius layui-btn-normal" id="register" >注册</button>
            </div>
        </div>
    </form>
</div>
    <br><br><br><br><br><br><br>
</div>
</body>
</html>
